import request from '@/utils/request'

// 查询技师列表
export function listTechnician(query) {
  return request({
    url: '/function/technician/list',
    method: 'get',
    params: query
  })
}

// 查询技师详细
export function getTechnician(id) {
  return request({
    url: '/function/technician/' + id,
    method: 'get'
  })
}

// 新增技师
export function addTechnician(data) {
  return request({
    url: '/function/technician',
    method: 'post',
    data: data
  })
}

// 修改技师
export function updateTechnician(data) {
  return request({
    url: '/function/technician',
    method: 'put',
    data: data
  })
}// 修改技师
export function putCheck(data) {
  return request({
    url: '/function/technician/check',
    method: 'put',
    data: data
  })
}

// 删除技师
export function delTechnician(id) {
  return request({
    url: '/function/technician/' + id,
    method: 'delete'
  })
}
